package com.liangli.thread.utils;

import com.alibaba.excel.EasyExcel;

import java.util.List;

/**
 * @Author: liangli
 * Date: 2021/10/2 22:22
 * Description:
 */
public class ExcelWriteUtils {

    /**
     * 一次写入
     *
     * @param fileName
     * @param list
     */
    public static <T> void excelWriteOne(String fileName, List list, Class head) {
        EasyExcel.write(fileName, head).sheet().doWrite(list);
    }

}
